.class Lrexsee/core/widget/RatingStars$1;
.super Ljava/lang/Object;
.source "RatingStars.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/widget/RatingStars;-><init>(Landroid/content/Context;Ljava/lang/String;IZ)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/widget/RatingStars;


# direct methods
.method constructor <init>(Lrexsee/core/widget/RatingStars;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/widget/RatingStars$1;->this$0:Lrexsee/core/widget/RatingStars;

    .line 46
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 4
    .param p1, "v"    # Landroid/view/View;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 49
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 50
    .local v0, "a":I
    if-eqz v0, :cond_0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_1

    .line 51
    :cond_0
    iget-object v1, p0, Lrexsee/core/widget/RatingStars$1;->this$0:Lrexsee/core/widget/RatingStars;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result v3

    int-to-float v3, v3

    add-float/2addr v2, v3

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    invoke-static {v1, v2}, Lrexsee/core/widget/RatingStars;->access$0(Lrexsee/core/widget/RatingStars;I)V

    .line 52
    iget-object v1, p0, Lrexsee/core/widget/RatingStars$1;->this$0:Lrexsee/core/widget/RatingStars;

    # invokes: Lrexsee/core/widget/RatingStars;->setRating()V
    invoke-static {v1}, Lrexsee/core/widget/RatingStars;->access$1(Lrexsee/core/widget/RatingStars;)V

    .line 54
    :cond_1
    const/4 v1, 0x0

    return v1
.end method
